// qq回调model类

// 分享
class QQShareResponse {
  final String? errStr;
//  final String androidTransaction;
  final int? type;
  final int? errCode; // ios: 0分享成功
//  final String androidOpenId;
  final String? description;

  QQShareResponse.fromMap(Map map)
      : errStr = map["errStr"],
//        androidTransaction = map["transaction"],
        type = map["type"],
        errCode = map["errCode"],
//        androidOpenId = map["openId"],
        description = map["description"];
}

// 登录
class QQAuthResponse {
  final String? accessToken;
  final String? openID;
  final String? unionid;
  final int? errCode; // ios: 0登录成功

  QQAuthResponse.fromMap(Map map)
      : accessToken = map["accessToken"],
        openID = map["openID"],
        unionid = map["unionid"],
        errCode = map["errCode"];
}

// 用户信息
class QQGetUserInfoResponse {
  final String? avatarUrl;
  final String? province;
  final int? errCode;// ios: 0获取用户信息成功
  final String? city;
  final String? nickname;
  final String? gender;
  final int? genderType;
  final int? year;

  QQGetUserInfoResponse.fromMap(Map map)
      : avatarUrl = map["avatarUrl"],
        province = map["province"],
        errCode = map["errCode"],
        city = map["city"],
        nickname = map["nickname"],
        gender = map["gender"],
        genderType = map["genderType"],
        year = map["year"];
}